package com.shenma2009.Messsage;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author 军哥
 * @version 1.0
 * @description: KafkaMessage
 * @date 2023/7/31 15:24
 */

@Component
@Slf4j
public class KafkaMessage {

    @KafkaListener(topics = {"topic-2102"})
    public void message(String message) {
        System.out.println("RECV:" + message);
    }

}
